home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 49
/
Volume 49 - JOGO DISK .iso
/
Games
/
funnyquest.swf
/
scripts
/
frame_123
/
DoAction.as
Wrap
Text File
|
2007-10-01
|
1KB
|
74 lines
call("/:applyLvRe");
set("/sndMC/:sndMode","clear");
call("/:playSnd");
call("/:removeCell");
tSec = int(totalTime / 1000);
sec = tSec % 60;
min = int(tSec / 60 % 60);
hour = int(int(tSec / 60) / 60);
tellTarget("sec_mc")
{
gotoAndStop(length(String(eval("../:sec"))));
}
str = String(sec);
j = 0;
k = length(str);
while(k > 0)
{
tellTarget("sec_mc/n" add j)
{
gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
}
j++;
k--;
}
tellTarget("min_mc")
{
gotoAndStop(length(String(eval("../:min"))));
}
str = String(min);
j = 0;
k = length(str);
while(k > 0)
{
tellTarget("min_mc/n" add j)
{
gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
}
j++;
k--;
}
tellTarget("hour_mc")
{
gotoAndStop(length(String(eval("../:hour"))));
}
str = String(hour);
j = 0;
k = length(str);
while(k > 0)
{
tellTarget("hour_mc/n" add j)
{
gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
}
j++;
k--;
}
tellTarget("score_mc")
{
gotoAndStop(length(String(eval("../:score"))));
}
str = String(score);
j = 0;
k = length(str);
while(k > 0)
{
tellTarget("score_mc/n" add j)
{
gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
}
j++;
k--;
}
my_so.clear();